import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl"

const TCHYURL = BASEURL.TCHYURL
const SettlementDocApi = {
    // 承运结算单 api
    //获取对账单列表
    getStatementAccountList(params) {
        let url = TCHYURL + '/order/platformOrder/listBillDriver'
        return myaxios.get(url, params)
    },
    //获取对账单详情
    getStatementAccountDetails(params) {
        let url = TCHYURL + '/order/platformOrder/billDetails'
        return myaxios.get(url, params)
    },

    getPaymentList(params) {
        let url = TCHYURL + "/order/order/fleet/pay/list"
        return myaxios.get(url, params)
    },

    //付款单结算
    calculatePayment(params) {
        let url = TCHYURL + "/order/order/fleet/settlement/submit"
        return myaxios.post(url, params)
    },

    //收款单结算
    calculateReceipt(params) {
        let url = TCHYURL + "/order/order/cargo/settlement/submit"
        return myaxios.post(url, params)
    },


    getReceiptList(params) {
        let url = TCHYURL + "/order/order/cargo/settlement/list"
        return myaxios.get(url, params)
    },

    /*
    承运结算单对账单司机核算
     */
    calculateSettlement(params) {
        let url = TCHYURL + "/order/platformOrder/adjustAccounts"
        return myaxios.post(url, params)
    },

    getReceiptDetail(params) {
        let url = TCHYURL + "/order/order/cargo/settlement/detail"
        return myaxios.get(url, params)
    },

    getPaymentDetail(params) {
        let url = TCHYURL + "/order/order/fleet/pay/detail"
        return myaxios.get(url, params)
    },
    /*  */

    // 货主列表
    dropDownByOrder(params) {
        let url = TCHYURL + "/account/cargo_owner/dropDownByOrder"
        return myaxios.get(url, params)
    },
    //项目列表
    project_down(params) {
        let url = TCHYURL + "/account/owner_project/project_down"
        return myaxios.get(url, params)
    },
    
    get_vehicle_model_list(params) {
        let url = TCHYURL + "/account/vehicle/get_vehicle_model_list"
        return myaxios.get(url, params)
    },
    listPullDown(params) {
        let url = TCHYURL + "/account/supplier/listPullDown"
        return myaxios.get(url, params)
    },
    fleetlistPullDown(params) {
        let url = TCHYURL + "/account/fleet/listPullDown"
        return myaxios.get(url, params)
    },

    queryDriverAndVehicle(params) {
        let url = TCHYURL + "/account/driver/queryDriverAndVehicle"
        return myaxios.get(url, params)
    },

    queryDriverAndVehicleDetail(params) {
        let url = TCHYURL + "/account/driver/queryDriverAndVehicleDetail"
        return myaxios.get(url, params)
    },
    userLineDownList(params) {
        let url = TCHYURL + "/account/userLine/userLineDownList"
        return myaxios.get(url, params)
    },
    userLineAddressList(id) {
        let url = TCHYURL + "/account/userLine/userLineAddressList/" + id
        return myaxios.get(url)
    },
    platformOrderaddShipper(params) {
        let url = TCHYURL + "/order/platformOrder/addShipper"
        return myaxios.post(url, params)
    },
    platformOrderUpdateShipper(params) {
        let url = TCHYURL + "/order/platformOrder/updateShipper"
        return myaxios.post(url, params)
    },
    platformOrderreleaseOrder(params) {
        let url = TCHYURL + "/order/platformOrder/releaseOrder"
        return myaxios.get(url, params)
    },
    platformOrdegoodsr(params) {
        let url = TCHYURL + "/order/platformOrder/goods"
        return myaxios.get(url, params)
    },
     //驳回编辑
     platformOrderupdate(params) {
        let url = TCHYURL + '/order/platformOrder/update'
        return myaxios.post(url, params)
    },
}
export default SettlementDocApi;
